package br.com.imagechess.player;

import java.awt.image.BufferedImage;
import java.io.File;

import javax.imageio.ImageIO;

public class ImageLoader {

	public BufferedImage loadImage(String imageName) {
		BufferedImage bimg = null;
		try {

			bimg = ImageIO.read(new File(imageName));
		} catch (Exception e) {
			System.out.println(imageName + " not found");
		}
		return bimg;
	}

}
